package com.sjk.repository;

import com.sjk.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author lohhhha
 * 2023/5/17
 */

@Repository
public interface LoginDao extends JpaRepository<User, String> {
    User findByUsername(String username);
    User findByUsernameAndPassword(String username, String password);
}